package com.icloud.system.boot.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.icloud.common.database.model.AdminUser;
import com.icloud.common.web.domain.UserDto;
import com.icloud.system.boot.vo.AdminUserVo;
import org.apache.ibatis.annotations.Param;

public interface AdminUserDao extends BaseMapper<AdminUser> {

    /**
     * 根据用户名获取后台用户登录信息
     */
    UserDto getUserDto(@Param("username") String username);

    IPage<AdminUserVo> page(@Param("page") Page<AdminUser> page, @Param("ew") Wrapper<AdminUser> wrapper);

}
